#!/bin/bash


ls
#in order to get Munin up and running type on all nodes:

sudo apt-get -y install munin-node

#on the master:
sudo apt-get -y install munin

#The quick auto-plug-and-play solution:
sudo munin-node-configure --shell --families=contrib,auto | sudo sh -x

sudo sed -i 's/Allow from localhost 127.0.0.0\/8 ::1/Allow from all/g' /etc/munin/apache.conf

sudo /etc/init.d/apache2 restart

sudo sh -c "echo '# add central server (jsi) ' >> /etc/munin/munin-node.conf"
sudo sh -c "echo 'allow ^ec2-54-235-48-91\.compute-1\.amazonaws\.com$' >> /etc/munin/munin-node.conf"
sudo sh -c "echo 'allow ^10.144.86.234$' >> /etc/munin/munin-node.conf"
sudo sh -c "echo '#' >> /etc/munin/munin-node.conf"






